<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html>
  <head>
    <title>付款管理</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>
	<script src="${ctx}/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx}/js/jsp/yd/logic/fk.js"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/yd/logic/fk";
		var basic_WUrl="yd/logic/fk";
		var basic_Title="付款管理";
		var show_Width=1000;
		var show_Hight=500;
		var ctx = '${ctx}';
		var pid = null;
		var user='${user.name}';
		function createSearch(){
			init(1,10,'100,100,100,100,100,100,100,100,100,100','10%');
			//第一行的数据
			addCommon(0,0,"lable","付款单号：");
			addCommon(0,1,"txtlike","fkcode");
			addCommon(0,2,"lable","采购入库单号：");
			addCommon(0,3,"txtlike","oricode");
			addCommon(0,4,"lable","供应商编码：");
			addCommon(0,5,"txtlike","spcode");
			addCommon(0,6,"lable","供应商名称：");
			addCommon(0,7,"txtlike","spname");
			addCommon(0,8,"lable","付款状态：");
			addCommon(0,9,"selectEnum","fkstatus","<option></option><option value='0'>未付款</option>"+
			"<option value='1'>部分付款</option><option value='2'>全部付款</option>");
		}
		
		function searchAP(){
			if(pid == null){
				multipleSearch("#table1",true,"",basic_Url+"/list.do?billStatus=0&spCode="+actionNodeID);
				multipleSearch("#table2",true,"",basic_Url+"/list.do?billStatus=5&spCode="+actionNodeID);
			}else{
				multipleSearch("#table1",true,"",basic_Url+"/list.do?billStatus=0&spCode="+actionNodeID+"&pid="+pid);
				multipleSearch("#table2",true,"",basic_Url+"/list.do?billStatus=5&spCode="+actionNodeID+"&pid="+pid);
			}
		}
		
	</script>
  </head>
  <body style="padding:10px" onload="createSearch()">      
    
    <div id="pageHeader" class="pageHeader">
       <div class="searchBar" id="multipleSearchDialog">
         <table class="table" width="100%" id="searchHeader" >  
                <tbody id="newbody">
                </tbody>
          </table>
          <div class="subBar">
         <ul>
           <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSearch" onclick="searchAP()">查询</button></div></div></li>
           <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
         </ul>
          </div>
       </div>
    </div>
	<div id="layout1">
		<div position="left" title="供应商列表" >
			<div style="width: 200px; height: 450px; float: left; overflow: auto;">
				<ul id="tree1"></ul>
			</div>
		</div>
		<div position="center" title="付款单列表">
			
			<div>
				<div id="table1"></div>
			</div>
				<div id="table2"></div>
		</div>
	</div>
	
	<!--  <div class="clear"></div>   -->
  
  </body>
</html>